﻿namespace DomainServices.Tools
{
    using System;
    using System.Runtime.CompilerServices;

    [Serializable]
    public class ClientCodeGenerationOptions
    {
        private string _language;

        public string ClientFrameworkPath { get; set; }

        public string ClientProjectPath { get; set; }

        public string ClientRootNamespace { get; set; }

        public bool IsApplicationContextGenerationEnabled { get; set; }

        public string Language
        {
            get
            {
                return this._language;
            }
            set
            {
                if (string.IsNullOrEmpty(value))
                {
                    throw new ArgumentNullException("value", Resource.Null_Language_Property);
                }
                this._language = value;
            }
        }

        public string ServerProjectPath { get; set; }

        public string ServerRootNamespace { get; set; }

        public bool UseFullTypeNames { get; set; }
    }
}

